<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="tag" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<%= request.getContextPath() %>/views/includes/css/style.css" />
<title>Manage</title>
</head>
<body>
    <div id="wrapper">
        <security:authorize ifAllGranted="ROLE_USER">
            <jsp:include page="../includes/loginFB.jsp">
                <jsp:param name="perms" value="read_stream"/>
            </jsp:include>
            <div id="app-title"><h1>Ad-campaign-facebook application</h1></div>
            <%@ include file="../includes/navigation.jsp" %>
            <ul>
                <li>
                    <a href="<%= request.getContextPath() %>/manage/readfeed.html">
                        <tag:message code="menu.readfeed" />
                    </a>
                </li>
            </ul>
        </security:authorize>
        <security:authorize ifAllGranted="ROLE_ADMIN">
            <jsp:include page="../includes/loginFB.jsp">
                <jsp:param name="perms" value="read_stream,publish_stream,offline_access,email,manage_pages"/>
            </jsp:include>
            <div id="app-title"><h1>Ad-campaign-facebook application</h1></div>
            <%@ include file="../includes/navigation.jsp" %>
            <ul>
                <li>
                    <a href="<%= request.getContextPath() %>/manage/readfeed.html">
                        <tag:message code="menu.readfeed" />
                    </a>
                </li>
                <li>
                    <a href="<%= request.getContextPath() %>/manage/postfeed.html">
                        <tag:message code="menu.postfeed" />
                    </a>
                </li>
                <li>
                    <a href="<%= request.getContextPath() %>/manage/integrationfeed.html">
                        <tag:message code="menu.postintegrationfeed" />
                    </a>
                </li>
            </ul>
        </security:authorize>
    </div>
</body>
</html>